package day03;
//运算符列子
public class OperDemo {
    public static void main(String[] args) {
        System.out.println(10+20+""+90);//3090
        System.out.println(30+20+10+"");//60
        System.out.println(""+10+29+20);//102920

        int num=0;
        int flag=num >0?1:-1;
        System.out.println(flag);//-1
        int a=8,b=55;
        int max=a>b?a:b;
        System.out.println(max);//55



        /*int age=21;
       String name="梁钰圳";
       System.out.println("大家好，我叫"+name+"今年"+age+"岁了");



        /* short s=5;
        //s=s+10;编译错误需要强转
        s+=10;//相当于s=（short）（s+10）；
        int a=5;
        a+=10;//相当于a=（int）（a+10）；
        System.out.println(a);//15相当于a=（int）（a+10）
        a*=2;
        System.out.println(a);//30相当于a=（int）（a*2）
        a/=6;
        System.out.println(a);//5相当于a=（int）（a/6）


       /* int a=5,b=10,c=5;
        boolean b3=a>b||c++>2;//true
        System.out.println(b3);//true
        System.out.println(c);//6
       /*boolean b3=a<b&&c++>2;//false
        System.out.println(b3);//false
        System.out.println(c);//5




       /* System.out.println(b>=a||b<c);//true
        System.out.println(b<=c||b>a);//true
        System.out.println(b!=c||b>a);//true
        System.out.println(a==b||b<a);//false
        int score=90;
        System.out.println(score<0||score>100);//true
        boolean b2=!(a<b);//false
        System.out.println(b2);//false
        System.out.println(!(a>b));//true



       /* boolean b1=b>a&&b<c;//false
        System.out.println(b1);//false
        System.out.println(b<c&&b>a);//false
        System.out.println(a==b&&b<a);//false
        System.out.println(b!=c&&b>a);//true
        int age=99;
        System.out.println(age>=18&&b>a);//true
        int score=86;
        System.out.println(score>=0&&score<=100);//true

      /*int a=5,b=10,c=5;
      boolean b1=a>b;
      System.out.println(b1);//false
        System.out.println(c<b);//true
        System.out.println(a>=c);//true
        System.out.println(a<=b);//true
        System.out.println(a==c);//true
        System.out.println(a!=c);//false
        System.out.println(a%2==0);//false
        System.out.println(a+c>b);//false
        System.out.println(a++>5);//false
        System.out.println(a++>5);//true


       /* int a=5,b=5;
        int c=a++;
        int d=++b;
        System.out.println(a);//6
        System.out.println(b);//6
        System.out.println(c);//5
        System.out.println(d);//6*/
    }
}
